package com.study.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Mayjean
 * @Date2020/9/5 13:35
 */
@FeignClient(value = "order", url = "http://127.0.0.1:18083")
public interface OrderService {

    @RequestMapping(path = "/order", method = RequestMethod.POST)
    String order(@RequestParam("userId") String userId,
                 @RequestParam("commodityCode") String commodityCode,
                 @RequestParam("orderCount") int orderCount);

}